
class Shape {

    private String type ;

    private Shape() { 
    }

    public Shape( String type ) {
        this.type = type ;
    }

    public void show(){
        System.out.println( this.type );
    }

}

class Triangle extends Shape {

    public Triangle(){
        super( "三角形" );
    }

}


public class ShapeTest {

    public static void main(String[] args) {

        Triangle t = new Triangle();
        t.show();
        
    }

}